package com.itheima.extends2;

import lombok.Data;

@Data
public class Cat extends Animal {
    @Override
    public void eat() {
        System.out.println("猫吃鱼");
    }
    int a = 2;

    public void catchMouse() {
        System.out.println("猫住老鼠");
    }
    public Cat(){}
    public Cat(String name, int age) {
        super(name, age);
    }
}
